package com.yricky.atri

import android.app.Application
import java.util.concurrent.LinkedBlockingQueue
import java.util.concurrent.ThreadPoolExecutor
import java.util.concurrent.TimeUnit

/**
 * @author Yricky
 * @date 2021/12/8
 */
class AtriApp:Application() {
    companion object{
        lateinit var inst:AtriApp
            private set
    }
    override fun onCreate() {
        inst = this
        super.onCreate()
    }
}
val globalContext get() = AtriApp.inst

//object Executor{
//    private val tpe: ThreadPoolExecutor by lazy {
//        ThreadPoolExecutor(1,8,10L, TimeUnit.MILLISECONDS, LinkedBlockingQueue(12))
//    }
//
//    fun exec(runnable: Runnable){
//        tpe.execute(runnable)
//    }
//}